package analizadorSemantico;

import tablaSimbolos.EntradaClase;

public class LineaCodigo {
	String label, op, param,nomVar,comentario;
	boolean calcularOffset;
	EntradaClase clase;
	
	public LineaCodigo(String lab, String oper, String par,String coment){
		label = lab;
		op = oper;
		param = par;
		comentario = coment;
		calcularOffset = false;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getOp() {
		return op;
	}
	
	public void setOp(String op) {
		this.op = op;
	}

	public String getParam() {
		return param;
	}

	public void setParam(String param) {
		this.param = param;
	}

	public String getNomVar() {
		return nomVar;
	}

	public void setNomVar(String nomVar) {
		this.nomVar = nomVar;
	}

	public boolean isCalcularOffset() {
		return calcularOffset;
	}

	public void setCalcularOffset(boolean calcularOffset) {
		this.calcularOffset = calcularOffset;
	}

	public EntradaClase getClase() {
		return clase;
	}

	public void setClase(EntradaClase clase) {
		this.clase = clase;
	}
	public String toString(){
		return label+"\t"+op+" "+param+"\t"+comentario;
	}
	
}
